/*
 * Copyright (c) 2012  apleilx
 * All rights reserved.
 * no limite
 */
#include "mbdef.h"
#include "bsp_api.h"
#include "framework.h"
#include "qcom.h"
#include "mb_box_input.h"
#include "mbapp.h"

/*******************************************************************************
 * @brief  qc slave basic
 *******************************************************************************/
qc_com_slave_type qc_com_slave_basic = {
	qc_reg_set,
	qc_reg_get};

qc_mb_slave_type qc_mb_slave_basic = {
	qc_reg_set,
	qc_reg_get,
	qc_input_get,
	qc_coil_dat_set,
	qc_coil_dat_get,
	qc_coil_dat_get,
};

/*******************************************************************************
 * @brief  qc slave box
 *******************************************************************************/
qc_com_slave_type qc_com_slave_box = {
	box_qc_reg_set,
	box_qc_reg_get};

qc_mb_slave_type qc_mb_slave_box = {
	box_qc_reg_set,
	box_qc_reg_get,
	box_qc_input_get,
	box_qc_coil_dat_set,
	box_qc_coil_dat_get,
	box_qc_coil_dat_get,
	0,
	0,
	&mb_input[0].uval,
	sizeof(mb_input) / 2,
	0,
	0,
	&mb_disc[0].v[0],
	sizeof(mb_disc),
};


